package com.siwei.mes.entity.tgl;

import com.siwei.mes.common.validator.bus.SyncGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * TGL-任务单配合比用量(TglTrwdphbycl)实体类
 *
 * @author linzi
 * @since 2023-12-09 12:01:19
 */
@Data
@Accessors(chain = true)
@Table(name = "tgl_trwdphbycl")
@ApiModel(value = "TglTrwdphbycl", description = "TGL-任务单配合比用量")
public class TglTrwdphbycl implements Serializable {
    private static final long serialVersionUID = -36460388121747004L;
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "TGL-任务单配合比用量主键ID", name = "id")
    private Long id;
    /**
     * 原材料id
     */
    @Column(name = "FId")
    @ApiModelProperty(value = "原材料id", name = "fid")
    private Integer fid;
    /**
     * 任务单号
     */
    @Column(name = "FRwdh")
    @ApiModelProperty(value = "任务单号", name = "frwdh")
    private Integer frwdh;
    /**
     * 类别
     */
    @Column(name = "FPblb")
    @ApiModelProperty(value = "类别", name = "fpblb")
    private Integer fpblb;
    /**
     * 材料名称
     */
    @Column(name = "FYlmc")
    @ApiModelProperty(value = "材料名称", name = "fylmc")
    private String fylmc;
    /**
     * 材料规格
     */
    @Column(name = "FPzgg")
    @ApiModelProperty(value = "材料规格", name = "fpzgg")
    private String fpzgg;
    /**
     * 用量
     */
    @Column(name = "FSysl")
    @ApiModelProperty(value = "用量", name = "fsysl")
    private Double fsysl;
    /**
     * 配料仓位
     */
    @Column(name = "FPlcw")
    @ApiModelProperty(value = "配料仓位", name = "fplcw")
    private String fplcw;
    /**
     * 设定值
     */
    @Column(name = "FPbsl")
    @ApiModelProperty(value = "设定值", name = "fpbsl")
    private Double fpbsl;
    /**
     * 更新时间
     */
    @Column(name = "updateTime")
    @ApiModelProperty(value = "更新时间", name = "updatetime")
    private Date updatetime;
    /**
     * 仓库编号
     */
    @Column(name = "FCkno")
    @ApiModelProperty(value = "仓库编号", name = "fckno")
    private String fckno;
    /**
     * 含水率
     */
    @Column(name = "FHsl")
    @ApiModelProperty(value = "含水率", name = "fhsl")
    private Double fhsl;
    /**
     * 同步时间戳
     */
    @Column(name = "synctime")
    @ApiModelProperty(value = "同步时间戳", name = "synctime")
    @NotNull(groups = {SyncGroup.class}, message = "同步时间戳为空")
    private Long synctime;
}
